#pragma once
#ifndef CMDINTERFACE_H
#define CMDINTERFACE_H

#include <QtWidgets/QWidget>
#include "ui_cmdInterface.h"
#include <QProcess>
#include <QTextBlock>
#include <QDebug>

class cmdInterface : public QWidget
{
	Q_OBJECT

public:
	cmdInterface(QWidget* parent = Q_NULLPTR);
    ~cmdInterface();

private:
    Ui::cmdInterface ui;
    QProcess* cmdProcess;

private slots:
    void updateCmd();
    void readConsoleOutput();
    void progressFinished();
    void processError();

protected:
    bool eventFilter(QObject* object, QEvent* event);

};

#endif

